package com.qinggeng.project.api.dto;


public class Draw {

    //订单ID
    private Long ordersId;

    //抽奖次数
    private Integer drawTimes=0;

    //可否抽奖
    private Boolean isDraw=false;

    //可否抽取免单
    private Boolean isFree=false;

    //抽奖链接
    private String drawUrl;

    public Draw() {
    }

    public Draw(Long ordersId,Integer drawTimes) {
        this.ordersId=ordersId;
        this.drawTimes = drawTimes;
    }

    public Long getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(Long ordersId) {
        this.ordersId = ordersId;
    }

    public Integer getDrawTimes() {
        return drawTimes;
    }

    public void setDrawTimes(Integer drawTimes) {
        this.drawTimes = drawTimes;
    }

    public Boolean getIsDraw() {

        return this.isDraw=this.drawTimes>0;
    }

    public void setIsDraw(Boolean draw) {
        isDraw = draw;
    }

    public Boolean getIsFree() {
        return isFree;
    }

    public void setIsFree(Boolean free) {
        isFree = free;
    }

    public String getDrawUrl() {
        return drawUrl;
    }

    public void setDrawUrl(String drawUrl) {
        this.drawUrl = drawUrl;
    }
}
